/*
* HexLabelStorage.h
*
* Copyright(C) 2009, Лущик Павел aka nanoo
*
* This code is lisenced under the GPL version 2. For details see 
* LISENCE.txt
*/

#ifndef HEXLABELSTORAGE_H
#define HEXLABELSTORAGE_H
#include<QWidget>
#include<QHBoxLayout>
#include<QLabel>
#include"HexLabel.h"
#define HEX_DIGITS 6

class HexLabelStorage: public QWidget
{
	Q_OBJECT
	public:
		HexLabelStorage(QWidget *parent=0);
	private:
		QHBoxLayout *layout;
		QLabel *label;
		HexLabel *(m[HEX_DIGITS]);
		int state;
	public slots:
		void setValue(int);
	private slots:
		void generateValue_and_Emit_valueChanged();
	signals:
		void valueChanged(int);
};
#endif
